# By Daoyu @2010-07-10
from django.conf.urls.defaults import *
from uncle import settings

urlpatterns = patterns('uncle.project',
    (r'^new/$','views.new_project'),
    (r'^all/$','views.all_project'),
    (r'^search/$','search.search'),
    
    (r'^select/artist/$','search.select_artist'),
    
    (r'^(\d+)/$', 'views.detail'),
    
    (r'^(\d+)/edit/$', 'views.edit'),
    (r'^(\d+)/save/$', 'views.save'),
    (r'^(\d+)/delete/$', 'views.delete'),
    (r'^(\d+)/change_name/$', 'views.change_project_name'),
    (r'^(\d+)/add_client_email/$', 'views.add_client_email'),
    
    (r'^(\d+)/client_email/(\d+)/$', 'views.delete_client_email'),
    (r'^(\d+)/file/(\d+)/$', 'views.delete_file'),
    (r'^(\d+)/file/hide/(\d+)/$', 'views.hide_file'),
    (r'^(\d+)/file/show/(\d+)/$', 'views.show_file'),
    
    (r'^(\d+)/artist/(\d+)/$', 'views.delete_artist'),
    (r'^(\d+)/video/artist/(\d+)/$', 'views.set_artist_project_video'),
    (r'^(\d+)/artist/video/(\d+)/$', 'views.get_artist_video'),
    
    (r'^(\d+)/youtube/(\d+)/$', 'views.delete_youtube'),
    (r'^(\d+)/youtube/show/(\d+)/$', 'views.show_youtube'),
    (r'^(\d+)/youtube/hide/(\d+)/$', 'views.hide_youtube'),
    
    (r'^(\d+)/addfile/$', 'views.add_file'),
    (r'^(\d+)/artist/$', 'views.add_artist'),
    #(r'^(\d+)/change_youtube/$', 'views.change_youtube'), # Kalle: refresh show youtube
    (r'^(\d+)/youtube/$', 'views.add_youtube'),
    
    (r'^(\d+)/safe_url/$', 'search.safe_url'),
    (r'^(\d+)/(\w+)/$', 'search.view_safe_url'),
)
